package com.cci.zkweb.core.services;

import java.io.InputStream;
import java.util.List;

import javax.security.auth.Subject;

import com.cci.zkweb.core.entity.p8.Document;
import com.cci.zkweb.core.entity.p8.Folder;
import com.cci.zkweb.core.entity.p8.P8Object;
import com.filenet.api.core.Connection;

public interface P8Service {
	public Folder getRootFolder();
	public List<Folder> getSubFolders(Folder folder);
	public List<Document> getDocumentsInFolder(Folder folder);
	public int getSubFoldersCount(Folder folder);

	public void LoginToServiceContext(Subject subject);
	public Connection getConnection();
	public void readObjectClassInfo(P8Object doc);
	public InputStream getDocumentStream(Document doc);
}
